home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Lengths
/
Modify
/
l-rest-revert-range-section
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
633b
|
21 lines
l-rest-revert-range-section range section pattern
0-based
This function enables rest-lengths to be changed to note-lengths over a specified range and within a specific section.
(setq len
(qlength '((20-10101) (12-101 8-11) (20-10011) (8-1010))))
(setq range
(p-select '(0 2 3)
(pick-rnd1 .23 :content 2
(g-integer 0 (l-count :all :content len)))))
=> ((2 5) (0 3) (4 1))
internally to: ((2 5) (0 3) (1 4))
(l-rest-revert-range-section range '(0 2 3) len)
=> ((1/20 -1/20 1/20 1/20 1/20) (1/12 -1/12 1/12 1/8 1/8)
(1/20 1/20 1/20 1/20 1/20) (1/8 1/8 1/8 1/8))